package company.chubao;

import java.util.Scanner;

public class Chu5A {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int maxSpeed = sc.nextInt();
        int n = sc.nextInt();
        int[] distance = new int[n];
        int[] time = new int[n];
        for (int i = 0; i < n; i++) {
            distance[i] = sc.nextInt();
            time[i] = sc.nextInt();
        }
        System.out.println(maxSpeed);
    }
}
